<html>
<head>
<title>Administrator Console - [<?php echo $titleadmin ?>]</title>
<meta http-equiv="Content-Language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<?php /*
<link href="styles/style.css" rel="stylesheet" type="text/css"/>
<link href="styles/toolbar.css" rel="stylesheet" type="text/css"/>
<link href="styles/menu2.css" rel="stylesheet" type="text/css"/>
<link href="styles/calendar.css" rel="stylesheet" type="text/css" media="screen"/>
*/?>
<link href="styles/all.css" rel="stylesheet" type="text/css"/>
<link href="javascript/popup/popup.css" rel="stylesheet" type="text/css" media="screen"/>

<script src="javascript/library.js" type="text/javascript"></script>
<script src="javascript/tablednd.js" type="text/javascript"></script>
<script src="javascript/tiny_mce3/tiny_mce.js" type="text/javascript"></script>
<script src="javascript/tiny_mce3/tiny_mce_init.js" type="text/javascript"></script>
<script type="text/javascript" src="javascript/mootools.js"></script>
<script type="text/javascript" src="javascript/menu2.js"></script>
<script type="text/javascript" src="javascript/tabs.js"></script>
<script>
tinyMCE.settings.script_image_upload="<?php echo $folder_path_root?>admin/uploadplugin.php";
</script>
<!--[if IE]>
<style>.Content table{width:97%  !important }</style>
<![endif]-->
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<div align="center">
<div class="MainPage">
    <div id="MsgAlert" align="left"></div>
     <?php
    if(!empty($msg_alert))
    {
    ?>
      <script>
        AIM.showMsgAlert("<?php echo htmlentities($msg_alert);?>");
      </script>
    <?php
    }
    ?>
    <div class="Logo" id="Logo" align="left"><a href="default.php"></a></div>
    <?php
    if(checkAdminLogin()==true && $menu==true)
    {
    ?>
        <div class="menu2">
            <div style="float: left;">
                <?php echo $menu->buildMenu();?>
            </div>
            <div style="float:right; padding-top:3px; padding-right:5px">
        	   <a href="?module=account&opt=myaccount">My Account</a> -
    			<?php
    			foreach($Languages as $key=>$value)
    			{
    				if($value==$language)
    				{
    					echo '<font color="red"><b>'.$key.'</b></font> - ';
    				}else
    				{
    					echo ' <a href="?lang='.$value.'">'.$key.'</a> - ';
    				}
    			}
    			?>
    			<a href="?opt=logout">Logout</a>
            </div>
        </div>
        <div><?php echo $menu->buildToolBar($toolbar)?></div>
        <div><?php echo $menu->buildSubMenu();?></div>
    <?php
    }
    ?>
<div class="MainContent">
    <div class="Content" align="left">